/**
 * 搜索相关模块
 */
 import request from '@/utils/request'
 //get 参数params  post 参数 data


//热门文章推荐
 export function popularArticles(data){
  return request({
    url: '/periodical/popularArticles',
    method: 'post',
    data,
  })
}
//专家学者
export function ExpertResource(data){
    return request({
        url: '/Expert/ExpertResource',
        method: 'post',
        data,
    })
}
//专家学者  二进制请求改变
const http ={
    Get(url,params){
        const config = {
            method: 'get',
            url:url,
            responseType:'arraybuffer'
        }
        if(params) config.params = params
        return request(config)
    },
}
//请求图片二进制
export function GetExpertPicture(params){
    return http.Get(`/Expert/GetExpertPicture`,params)
}
//公开出版
export function wholeAtiicles(data){
    return request({
        url: '/periodical/wholeAtiicles',
        method: 'post',
        data,
    })
}
//党刊资源
export function partyResource(data){
    return request({
        url: '/periodical/partyResource',
        method: 'post',
        data,
    })

}



// export function partyResource(params){
//   return request({
//     url: '/periodical/partyResource',
//     method: 'get',
//     params,
//   })
// }

